import FormItem, { FormItemProps } from '@/components/form-item';

import { Switch, SwitchProps } from 'antd';
import { FC } from 'react';

interface SwitchItemProps extends FormItemProps {
  switchProps?: SwitchProps;
}

const SwitchItem: FC<SwitchItemProps> = ({ switchProps, ...restProps }) => {
  return (
    <FormItem {...restProps}>
      <Switch {...switchProps} />
    </FormItem>
  );
};

export default SwitchItem;
